package com.copm.ifm.servers.sys.service;

import com.copm.ifm.base.api.pojo.PageDTO;
import com.copm.ifm.base.api.pojo.PageVO;
import com.copm.ifm.base.basic.pojo.vo.BaseTreeVO;
import com.copm.ifm.base.basic.pojo.vo.DefaultTreeVO;
import com.copm.ifm.servers.sys.dto.SysMenusCustomDTO;
import com.copm.ifm.servers.sys.entity.SysMenusCustom;
import com.baomidou.mybatisplus.extension.service.IService;
import com.copm.ifm.servers.sys.vo.SysMenusCustomVO;

import java.util.List;

/**
 * <p>
 * 自定义菜单表 服务类
 * </p>
 *
 * @author tp
 * @since 2021-01-05
 */
public interface SysMenusCustomService extends IService<SysMenusCustom> {

    BaseTreeVO getEquTypeTree(int enabled, String equName);

    SysMenusCustomVO clickAddEqu(Integer parentEquId);

    SysMenusCustom add(SysMenusCustomDTO addDTO);

    SysMenusCustom modify(SysMenusCustomDTO entity);

    SysMenusCustomVO selectById(int id);

    int countById(int id);

    void updateDelete(int id);

    int menuAuthRefresh();

    PageVO<SysMenusCustomVO> menuListByName(PageDTO<SysMenusCustomDTO> param);

    void addBatch(List<SysMenusCustomDTO> addDTOList,String ParentPath);

    void updateParentDelete(int id);
}
